scrolled window: Drop dead code
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Feb 2015 13:23:53 +0000 (08:23 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 20 Feb 2015 13:28:58 +0000 (08:28 -0500)
The allocation is never used in this function, so don't bother
getting it.

gtk/gtkscrolledwindow.c

index ad40c08bd7171da33645e4813a78251129cd1381..39dddc973f4626331766b1ca8311251368d92167 100644 (file)
@@ -2464,13 +2464,10 @@ gtk_scrolled_window_allocate_child (GtkScrolledWindow *swindow,
                                    GtkAllocation     *relative_allocation)
 {
   GtkWidget     *widget = GTK_WIDGET (swindow), *child;
-  GtkAllocation  allocation;
   GtkAllocation  child_allocation;
 
   child = gtk_bin_get_child (GTK_BIN (widget));
 
-  gtk_widget_get_allocation (widget, &allocation);
-
   gtk_scrolled_window_relative_allocation (widget, relative_allocation);
 
   child_allocation.x = relative_allocation->x;